﻿using DeZhen.Core.Framework.Business.Ioc;
using DeZhen.Core.Framework.Entity;
using DeZhen.Core.Framework.Locator;
using DeZhen.Core.SqlSugar.Service;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DeZhen.Core.SqlSugar.Repository
{
    public class BaseRepository
    {
        protected SqlSugarScopeProvider SqlClient { get; set; }
        public BaseRepository(String configId)
        {
            SqlClient = IocLocator.Resolve<SqlSugarPlatform>().SqlClient.GetConnectionScope(configId);
        }
    }
}
